NotificationFeed
Interfaces
NotificationFeedProps
Properties
FeedProps?
optional
FeedProps:Omit
<FeedProps
,"endpoint"
|"ItemComponent"
|"widgets"
|"itemPropsGenerator"
|"itemIdGenerator"
|"ItemSkeleton"
|"ItemSkeletonProps"
|"FeedSidebarProps"
>
Props to spread to feed component
Default
{}
Source
NotificationFeed/NotificationFeed.tsx:71
FeedSidebarProps?
optional
FeedSidebarProps:StickyBoxProps
Props to spread to single feed object
Default
{top: 0, bottomBoundary: `#${id}`}
Source
NotificationFeed/NotificationFeed.tsx:65
NotificationProps?
optional
NotificationProps:NotificationProps
Props to spread to single feed object
Default
empty object
Source
NotificationFeed/NotificationFeed.tsx:59
className?
optional
className:string
Overrides or extends the styles applied to the component.
Default
null
Source
NotificationFeed/NotificationFeed.tsx:47
id?
optional
id:string
Id of the feed object
Default
'notification_feed'
Source
NotificationFeed/NotificationFeed.tsx:41
widgets?
optional
widgets:SCFeedWidgetType
[]
Widgets to be rendered into the feed
Default
[CategoriesFollowed, UserFollowed]
Source
NotificationFeed/NotificationFeed.tsx:53
Functions
NotificationFeed()
NotificationFeed(
inProps
):JSX.Element
API documentation for the Community-JS Notification Feed Template. Learn about the available props and the CSS API.
This component renders the template for the notification feed. Take a look at our demo component here
Import
import {NotificationFeed} from '@selfcommunity/react-templates';
Component Name
The name SCNotificationFeedTemplate
can be used when providing style overrides in the theme.
CSS
Rule Name | Global class | Description |
---|---|---|
root | .SCNotificationFeedTemplate-root | Styles applied to the root element. |
Parameters
Parameter | Type | Description |
---|---|---|
inProps | NotificationFeedProps |
Returns
JSX.Element
Source
NotificationFeed/NotificationFeed.tsx:149
NotificationFeedSkeleton()
NotificationFeedSkeleton():
JSX.Element
API documentation for the Community-JS Notification Feed Skeleton Template. Learn about the available props and the CSS API.
Import
import {NotificationFeedSkeleton} from '@selfcommunity/react-templates';
Component Name
The name SCNotificationFeedTemplate-skeleton-root
can be used when providing style overrides in the theme.
CSS
Rule Name | Global class | Description |
---|---|---|
root | .SCNotificationFeedTemplate-skeleton-root | Styles applied to the root element. |
Returns
JSX.Element